﻿@model Inovout.Cloud.Identity.IdentirySettings
@Html.Style("~/Scripts/CkEditor/cSun.css")
<div class="w-1">
    <div class="wgt">
        <div class="w-1-6">
            @Html.Partial("_Navigation", (object)ViewBag.Project)
        </div>
        <div class="detail-list w-5-6" style="height: 680px;">
            <div class="setting-form">
                @using (Html.BeginForm("Save", "Settings", new { projectId = ViewBag.Project.Id }, FormMethod.Post))
                {
                    @*@Html.AntiForgeryToken()*@

                    <div class="wgt-l6">
                        @Html.Label("网站标题:", new { @class = "w6" })
                        @Html.Hidden("[0].Key", Model.TitleItem.Key)
                        @Html.TextBox("[0].Value", Model.TitleItem.Value)
                    </div>
                    <div class="wgt-l6">
                        @Html.Label("网站Url:", new { @class = "w6 .paddingLeft-w08" })
                        @Html.Hidden("[1].Key", Model.SiteUrlItem.Key)
                        @Html.TextBox("[1].Value", Model.SiteUrlItem.Value)
                    </div>
                    <div class="wgt-l6" id="htmlEditorForm">
                        @Html.Label("网站Html:", new { @class = "w6" })
                        @Html.Hidden("[2].Key", Model.SignInHtmlItem.Key)
                        @Html.TextArea("[2].Value", string.IsNullOrEmpty(Model.SignInHtmlItem.Value) ? @"test<img id='signInForm' src='' />" : Model.SignInHtmlItem.Value, new  { @rows="10", @cols="80",@class="htmlEditor",@id="editorSignIn" })
                    </div>
                    <div class="project-create-buttons">
                        <input type="submit" value="保存" />
                    </div>
                    
                }
            </div>
        </div>
    </div>
</div>
